.navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .5);
  transition: all .5s linear;
  pointer-events: none;
  visibility: hidden;
  z-index: 1;
  opacity: 0;
}

.navigation__content {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 520px;
  /* height: 100vh; */
  padding: 144px 10px 46px;
  background-color: #202020;
  box-sizing: border-box;
  transition: all .5s linear;
}

.navigation_opened {
  pointer-events: all;
  visibility: visible;
  opacity: 1;
}

.navigation__content,
.navigation__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.navigation__link {
  margin: 0;
  padding-bottom: 7px;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity .3s linear;
}

.navigation__link_active {
  border-bottom: 2px solid #FFFFFF;
}

.navigation__link_invisible {
  display: none;
}

.navigation__profile-link {
  position: relative;
  width: 100px;
  height: 32px;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  color: #FFFFFF;
  margin: 430px 0 0;
  /* margin: 425px 0 0; */
  padding: 0px 50px 0px 25px;
  text-decoration: none;
  background-color: transparent;
}

.navigation__profile-logo::before {
  content: url(../../images/icon-user.svg);
  position: absolute;
  /* bottom: 3px; */
  bottom: 7px;
  right: 38px;
  width: 30px;
  height: 30px;
  background-color: #313131;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navigation__link:hover,
.navigation__profile-link:hover {
  opacity: 0.7;
}

@media screen and (min-width: 768px) {
  .navigation__content {
    padding: 159px 90px 90px;
  }

  .navigation__container {
    gap: 20px;
  }

  .navigation__profile-link {
    margin: 605px 0 0;
  }
}

@media screen and (min-width: 1280px) {
  .navigation {
    position: static;
    background-color: transparent;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;

    pointer-events: all;
    visibility: visible;
    opacity: 1;
  }

  .navigation__content {
    position: static;
    width: calc(50% + 126px);
    max-width: 100%;
    height: auto;
    padding: 0;
  }

  .navigation__content,
  .navigation__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: transparent;
  }

  .navigation__content {
    justify-content: space-between;
    gap: 16px;
  }

  .navigation__container {
    gap: 16px;
  }

  .navigation__link {
    padding-bottom: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
  }

  .navigation__link_type_main {
    display: none;
  }
}